package com.dayuanit.pokergame;

public class Person {
    private String username;
    private Poker[] pokers = new Poker[2];
    private int grade;

    public Person(String username) {
        this.username = username;
    }

    public void setPokers(Poker... poker) {
        this.pokers[0] = poker[0];
        this.pokers[1] = poker[1];
    }

    @Override
    public String toString() {
        return username + " [" + pokers[0].getColor() + pokers[0].getName() +
                ", " +pokers[1].getColor() + pokers[1].getName()+ "] 得分=" + grade;
    }

    public Poker[] getPokers() {
        return pokers;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }
}
